package com.tanhua.dubbo.api.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.tanhua.domain.db.SoulQuestionnaire;
import com.tanhua.dubbo.api.TestSoulApi;
import com.tanhua.dubbo.mapper.SoulQuestionnaireMapper;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Service
public class TestSoulApiImpl implements TestSoulApi {

    @Autowired
    private SoulQuestionnaireMapper soulQuestionnaireMapper;

    @Override
    public List<SoulQuestionnaire> findSoulQuestionnaire() {
        QueryWrapper<SoulQuestionnaire> wrapper = new QueryWrapper<>();
        List<SoulQuestionnaire> list = soulQuestionnaireMapper.selectList(wrapper);
        return list;
    }
}
